﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nizm0.QOT.Library.Objects
{
    public class VariableGenerated : Library.Objects.Variable
    {
        private string _value;
        private string _generator;
        private object _generatorOption;

        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }
        public string Generator
        {
            get { return _generator; }
            set { _generator = value; }
        }

        public VariableGenerated(Library.Objects.Variable var, string value, string generator)
            : base(var)
        {
            _value = value;
            if (Generators.Record.GeneratorsList.Contains(generator))
            {
                _generator = generator;
            }
            else
            {
                throw new Exception("Generator not found in generators collection");
            }
            //Generators.Record.
        }
    }
}
